/*
    位操作符演示
*/
#include <stdio.h>
int main() {
    int num = 3;
    char ch = -128;
    unsigned char uch = 128;
    printf("~0x9c是0x%hhx\n",~0x9c);
    printf("3 & 5是%d\n", 3 & 5);
    printf("3 | 5是%d\n", 3 | 5);
    printf("3 ^ 5是%d\n", 3 ^ 5);
    printf("3 << 5是%d\n", 3 << 5);
    printf("num << 4是%d\n", num << 4);
    printf("num是%d\n",num);
    printf("ch >> 4是0x%hhx\n",ch >> 4);
    printf("uch >> 4是0x%hhx\n",uch >> 4);
    return 0;
}
